package com.ylr.blog.framework.feign.fallback;

import com.ylr.base.common.tool.Result;
import com.ylr.blog.framework.feign.YbBlogSpaceBaseClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-19 21:35:16
 * className: YbBlogSpaceClientFallback
 * version: 1.0
 * description:
 */
public class YbBlogSpaceClientFallback implements YbBlogSpaceBaseClient {

    private static final Logger log = LoggerFactory.getLogger(YbBlogSpaceClientFallback.class);

    /**
     * 添加用户博客空间操作
     * @param userId 用户主键
     * @param name   空间名称
     */
    public Result<Object> addBlogSpace(Long userId, String name) {
        log.warn("user模块 => 添加用户博客空间操作，请求失败回调");
        return Result.fail();
    }
}
